package summary;

/**
 * @Author: 海琳琦
 * @Date: 2022/3/10 9:17
 * https://leetcode-cn.com/problems/ti-huan-kong-ge-lcof/
 */
public class Title05 {

    public String replaceSpace(String s) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) == ' ') {
                sb.append("%20");
            } else {
                sb.append(s.charAt(i));
            }
        }
        return sb.toString();
    }

    public static void main(String[] args) {

    }
}
